import Vue from "vue";
import VueRouter from "vue-router";
import Index from "@/views/index.vue";
import Home from "@/views/附加练习2/Home.vue";
import Xin from "@/views/附加练习2/xinWen.vue";
import Ti from "@/views/附加练习2/tiYu.vue";
import Thome from "@/views/附加练习2/体育/Thome";
import Tooo from "@/views/附加练习2/体育/Tooo";
import Taaa from "@/views/附加练习2/体育/Taaa";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: "/index",
  },
  {
    path: "/index",
    component: Index,
    redirect: "/index/home",
    children: [
      {
        path: "home",
        component: Home,
      },
      {
        path: "xin",
        component: Xin,
      },
      {
        path: "ti",
        component: Ti,
        children: [
          {
            path: "thome",
            component: Thome,
          },
          {
            path: "tooo",
            component: Tooo,
          },
          {
            path: "taaa",
            component: Taaa,
          },
        ],
      },
    ],
  },
];

const router = new VueRouter({
  routes,
});

export default router;
